package com.chen.exception;
import lombok.Getter;
/**
 * @author chenchao
 */


/**
 * 自定义异常  运行时异常
 */
@Getter
@SuppressWarnings("all")
public class ServiceException extends RuntimeException {

    private int code;

    public ServiceException(int code, String msg) {
        super(msg);
        this.code = code;
    }

}

